﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Day27Auth.Data.Models
{
    public class Todo
    {
        [Key]
        public int TodoId { get; set; }

        public string Subject { get; set; }
        public string Message { get; set; }
        public DateTime Timestamp { get; set; }


        public string UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual ApplicationUser User { get; set; }
    }
}
